package com.clkj.xiuzheng.pojo.shangcheng;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
* 
* @TableName t_xz_productComment
*/
@ApiModel( value ="t_xz_productComment" )
@Table( name ="t_xz_productComment" )
public class ProductComment implements Serializable {

    /**
     * 商城 商品评论表
     */
    @Id
    @Column(name = "product_comment_id",updatable = false )
    @ApiModelProperty( value="商城 商品评论表")
    private Integer productCommentId;

    /**
     * 评论类型 0 好评 1中评 2差评
     */
    @Column(name = "comment_type" )
    @ApiModelProperty( value="评论类型 0 好评 1中评 2差评 ")
    private Integer commentType;

    /**
     * 评论内容
     */
    @Column(name = "comment_content" )
    @ApiModelProperty( value="评论内容")
    private String commentContent;

    /**
     * 评论的用户id
     */
    @Column(name = "comment_user_id" )
    @ApiModelProperty( value="评论的用户id")
    private Integer commentUserId;

    /**
     * 评论日期
     */
    @Column(name = "comment_date" )
    @ApiModelProperty( value="评论日期")
    private String commentDate;


    /**
     * 0删
     */
    @Column(name = "comment_status" )
    @ApiModelProperty( value="0删")
    private String commentStatus;

    /**
     * 商品id
     */
    @Column(name = "product_id" )
    @ApiModelProperty( value="商品id")
    private Integer productId;

    /**
     * 公司id
     */
    @Column(name = "company_id" )
    @ApiModelProperty( value="公司id")
    private Integer companyId;

    /**
     * 该评论是否置顶 0默认不置顶
     */
    @Column(name = "is_top" )
    @ApiModelProperty( value="该评论是否置顶 0默认不置顶")
    private Integer isTop;

    @Transient
    private String userName;

    @Transient
    private String productName;
    @Transient
    private String userImg;

    @Transient
    private List<ProductCommentImage> imageList;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }


    public Integer getCommentType() {
        return commentType;
    }

    public void setCommentType(Integer commentType) {
        this.commentType = commentType;
    }


    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }


    public Integer getCommentUserId() {
        return commentUserId;
    }

    public void setCommentUserId(Integer commentUserId) {
        this.commentUserId = commentUserId;
    }


    public String getCommentDate() {
        return commentDate;
    }

    public void setCommentDate(String commentDate) {
        this.commentDate = commentDate;
    }




    public String getCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(String commentStatus) {
        this.commentStatus = commentStatus;
    }


    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }


    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }


    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    public Integer getProductCommentId() {
        return productCommentId;
    }

    public void setProductCommentId(Integer productCommentId) {
        this.productCommentId = productCommentId;
    }

    public List<ProductCommentImage> getImageList() {
        return imageList;
    }

    public void setImageList(List<ProductCommentImage> imageList) {
        this.imageList = imageList;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }
}
